[Top] [Prev] [Next] [Bottom]
[Contents]
SaRegErrSite
Registers a built-in data site callback function which will insert the errors generated in a Sapphire server application at the specified data site in the HTML template. The default placing of errors by a Sapphire application is at the top of the returned HTML. Use this function to customize that placement.
#include "SaRnHtml.h"
int SaRegErrSite(char* filename, char* site);
Arguments
- filename
- A string specifying the filepath name of an HTML template file. If non-null and not an empty string, this file will be "played", if it is not already on the "play" list. If NULL or an empty string, the site will still be registered, but can be overridden by a similar site name with a specified filename.
- site
- A string specifying the site name to register the site function callback on.
Return Values
Returns 1 on success. Returns 0, if site is either NULL or an empty string.
Registers a built-in data site callback function which will insert the errors generated in a Sapphire server application at the specified data site in the HTML template. The default error placement by a Sapphire application is at the top of the returned HTML. Use SaRegErrSite
to customize that.
SaRegErrSite(NULL, "ERROR_SITE");
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.